package com.huatai.datacenter.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.datacenter.entity.dataquality.QualityLogDetailEntity;
import com.huatai.datacenter.entity.dataquality.QualityLogEntity;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author gusiyi
 * @version 1.0
 * @className QualityLogService
 * @description 描述：
 * @date 2023/6/5 15:08
 */
public interface QualityLogService extends IService<QualityLogEntity> {

	/**
	 * 获取数据质量日志清册
	 * @param qualityLogEntity
	 * @return
	 */
	Page<QualityLogEntity> getQualityLogList(QualityLogEntity qualityLogEntity);

	/**
	 * 通过id集合逻辑删除质量日志
	 * @param qualityLogEntityList
	 * @return
	 */
	boolean deleteByIds(List<QualityLogEntity> qualityLogEntityList);

	/**
	 * 增加一条错误日志记录详情
	 * @param qualityLogDetailEntity
	 * @return
	 */
	boolean addErrLogDetail(QualityLogDetailEntity qualityLogDetailEntity);

	/**
	 * 获取日志
	 * @param dataModelId
	 * @param dataModelName
	 * @return
	 */
	QualityLogEntity getLogEntity(Long dataModelId, String dataModelName);
}
